package com.dxf.service;

import com.dxf.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;


public class Exam {


    @Resource
    private Student student;

    //private Integer score;


    public Exam() {
    }


    @Autowired
    public Exam(Student student) {
        this.student = student;
    }

    /*public Exam(Student student, Integer score) {
        this.student = student;
        //this.score=score;
    }
*/



    public void handle(){

        System.out.println("这个学生"+student+"参加考试");
    }

    public Student getStudent() {
        return student;
    }


   public void setStudent(Student student) {
        this.student = student;
    }

}
